package com.twp.auth.myexecption;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

@Data
@EqualsAndHashCode(callSuper = false)
public class MyBadCredentialsException extends OAuth2Exception {
    private String code;

    public MyBadCredentialsException(String msg, String code) {
        super(msg);
        this.code=code;
    }
}
